import requests,pprint

payload = {
    'username': '王德发',
    'password': '88888888'
}

response = requests.post('http://localhost/api/mgr/signin',
              data=payload)

pprint.pprint(response.json())

payload2 = {
    'action' : 'list_customer'
}
response2 = requests.get('http://localhost/api/mgr/customers', params=payload2)

pprint.pprint(response2.json())
